package spikes.jframe;

import java.awt.BorderLayout;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;

@SuppressWarnings("serial")
public class Framer extends JFrame {
	
	public Framer() {
		setExtendedState(JFrame.MAXIMIZED_BOTH);
		BufferedImage myPicture = null;
		try {
			myPicture = ImageIO.read(new File("img/pp.jpg"));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		JLabel picLabel = new JLabel(new ImageIcon( myPicture ));
		
		add( picLabel,BorderLayout.CENTER);
		add(new JLabel("Blippa!"),BorderLayout.NORTH);
		setVisible(true);
	}
	
	public static void main(String[] args) {
	
		new Framer();
		
		
	}
}
